<?php $this->headScript()->appendFile($this->JS_PATH . "propertytype.js"); ?>
<div id="propertytype-listing"></div>


<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">Add Property Type</span></h3>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="grid simple">
                <div class="grid-title">
                </div>
                <div class="grid-body ">
                    <div class="row">


                        <?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>

                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>

                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                        <form id="propertytype-form" name="propertytype-form" action="" method="POST" enctype="multipart/form-data">
                          
                             <div class="row form-row">
                                    <div class="col-md-6">
                                        <label class="form-label">Name</label>
                                       
                                        <input type="text" placeholder="Name" class="form-control" value="<?php echo $this->languages[1]['prtyp_name'];?>" id="prtyp_name" name="prtyp_name">
                                    </div>
                             </div> 
                            <br/>
                                 <div class="row">
                                            <div class="col-md-12">
                                                <ul class="nav nav-pills" id="tab-4">
                                                    <?php
                                                    $counterln = 1;
                                                    foreach ($this->languages as $_lan):?>
                                                        <li <?php if ($counterln == 1) echo 'class="active"'; ?> ><a href="#tabs<?php echo ucfirst($_lan['lang_name']); ?>"><?php echo ucfirst($_lan['lang_name']); ?> Description</a></li>
                                                        <?php $counterln++; ?> 
                                                    <?php endforeach; ?>
                                                </ul>
                                                <div class="tab-content">
                                                    <?php
                                                      
                                                    $counterln = 1;
                                                    foreach ($this->languages as $_lan):
                                                        ?>
                                                        <div class="tab-pane <?php if ($counterln == 1) echo 'active'; ?> " id="tabs<?php echo ucfirst($_lan['lang_name']); ?>">
                                                            <div class="row form-row">
                                                                    <div class="col-md-6">
                                                                        <label class="form-label">Title</label>
                                                                        <input type="text" placeholder="Title" class="form-control" value="<?php echo $_lan['prtyp_title'];?>" id="prtyp_title" name="<?php echo $_lan['lang_id'];?>_prtyp_title">
                                                                    </div>
                                                             </div> 
                                                            
                                                            
                                                        </div>
                                                        <?php $counterln++; ?> 
                                                    <?php endforeach; ?>
                                                </div>
                                            </div>
                                        </div>
                            
                            <div class="row form-row">
                               <div class="col-md-6">
                                <?php if ($this->mode == 'Edit'): ?>
                                    <input type="submit" value="Update" class="submitfrmbtn btn btn-primary" name="Update"/>
                                <?php else: ?>
                                    <input type="submit" value="Submit" class="submitfrmbtn   btn btn-primary" name="Submit"/>
                                <?php endif; ?>
                            </div>
                           </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->                
